package com.moweilin.folded_binding.events;

import javafx.beans.NamedArg;
import javafx.event.Event;
import javafx.event.EventTarget;
import javafx.event.EventType;

import java.io.File;

/**
 * Created by moweilin on 2017/1/17.
 */
public class BindingEvent extends Event {
    public static final EventType<BindingEvent> FILE_CHANGED = new EventType<>("FILE_CHANGED");
    public File  sourceFile;
    public BindingEvent(@NamedArg("source") File source,  @NamedArg("eventType") EventType<? extends Event> eventType) {
        super(source, null, eventType);
        this.sourceFile = source;
    }

    public File getSourceFile() {
        return sourceFile;
    }
}
